import { request } from '@gui-pkg/request';

enum Api {
  WarnmsgPage = '/api/warnmsg/page',
  directSendMsg =  '/api/warnmsg/directSendMsg',

  countNum = '/api/warnmsg/countNum',
  countList = '/api/warnmsg/countList',
  findDefaultDate = '/api/warnmsg/findDefaultDate',
  selectFailList = '/api/warnmsg/selectFailList',

}
export const selectFailList = (params) => {
  return request.post({ url: Api.selectFailList, params });
};

// 预警信息发送记录
export const getWarnmsgPage = (params) => {
  return request.post({ url: Api.WarnmsgPage, params });
};


export const directSendMsg = (params) => {
  return request.post({ url: Api.directSendMsg, params });
};

export const countNum = (params) => {
  return request.post({ url: Api.countNum, params });
};

export const countList = (params) => {
  return request.post({ url: Api.countList, params });
};

export const findDefaultDate = () => {
  return request.get({ url: Api.findDefaultDate });
};
